Title: Replication File for ?"Inclusionary regimes, party institutionalization and redistribution under authoritarianism"
Author: Lars Pelke
Correspondence: Lars Pelke, Heidelberg University (lars.pelke@ipw.uni-heidelberg.de)
Date: June 17th, 2020

Required Software: R and RStudio (3.6.1 or Above). 
Additional required software packages and libraries are specified in the replication code.

Overview: These files replicate all analyses in Lars Pelke (2020), "Inclusionary regimes, party institutionalization and redistribution under authoritarianism".
To replicate all analyses and figures, download all data files to a folder entitled "~/data", create a second folder entitled "~/output" (with subfolder "~/data/margins" in the same directory, 
and run all code files (stored in a folder entiteld "~/calculations" in numerical order. You can use the provided zip-file. 
To directly replicate the main analysis, please use 02_main_models.R. Prepared datasets, entitled "vdem_merged.rds" and "vdem_merged_spaw.rds" are provided in the replication directory. 

%%%%%%%%%%%%%% Replication Code (relative path "~/calculations") %%%%%%%%%%%%%%

01_data_wrangling
Replicates the data wrangling process in the article. In addition, it compiles data need fored subsequent analysis. 

02_main_models
Replicates the main anayslis in the article. You can use this files directly by prepared datasets (vdem_merged.rds and vdem_merged_spaw.rds)
or you can build the datasets with the 01_data_wrangling.R file. 

03_robustness
Replicates all robustness test in the Supplementary Appendix. 

04_Figures
Replicates additional figures in the Supplementary Appendix.


%%%%%%%%%%%%%% Data Files (relative path "~/data") %%%%%%%%%%%%%%

Replication data for data wrangling (are included in the data folder): 
- vdem_9 folder: Varieties of Democracy Version 9, Coppegde et al. 2019 (Creative Commons Attribution-ShareAlike License)
- cow folder: Correlates of War Dataset (https://correlatesofwar.org/data-sets/national-material-capabilities) 
- Solt 2019 SWIID 8.0 folder: SWIID Dataset Version 8.0 (CC0 - "Public Domain Dedication")
- Solt 2019 SWIID 8.2 folder: SWIID Dataset Version 8.2 (CC0 - "Public Domain Dedication")
- sp_data folder: Replication data for "Gamning democracy: Elite Dominance during Transiton and the Prospect for redistirbution" (http://faculty.washington.edu/vmenaldo/Journal%20Supplements/AMGaming_DATA.csv)
- SPAW Rasmussen 2016: Social Policies around the World Dataset (DOI: 10.13140/RG.2.1.2383.7842 and https://journals.sagepub.com/doi/suppl/10.1177/0010414017710265/suppl_file/CPS_replication_Final.dta)
- world_bank_data: World Dank Data on Manufacturing Sector (Creative Commons Attribution 4.0 International License) 


%%%%%%%%%%%%%% Output Files (relative path "~/output") %%%%%%%%%%%%%%

Store outputs, such as Figures and Marginal Plots. All Latex-tables are directly implemented in the R File. 